package cn.hdu.liang.io;

import java.io.*;

public class TestEOF {
    public static void main(String[] args) throws IOException {
        try {
            DataInputStream in = new DataInputStream(
                    new BufferedInputStream(new FileInputStream(PATH.FILE_PATH + "TestEOF.java")));

            while(in.available() != 0) {
                System.out.print((char) in.readByte());
            }
        } catch(EOFException e) {
            System.err.println("流结束");
        }
    }
}
